package org.vincen.springapp.domain.diogenes;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(schema="diogenes", name="T_JOB_HISTORY")
@Access(AccessType.FIELD)
public class JobHistory implements Serializable{

	private static final long serialVersionUID = -4469201368806709788L;

	@Id
	@Column(name="pkid")
	@SequenceGenerator(schema="diogenes", name="Job_his_gen", sequenceName="JOB_HISTORY_GEN")
	@GeneratedValue(generator="Job_his_gen")
	private Integer pkid;
	@Column(name="user_id")
	private Integer userId;
	@Column(name="start_date")
	private Date startDate;
	@Column(name="end_date")
	private Date endDate;
	@Column(name="dept_id")
	private Integer deptId;
	@Column(name="job_id")
	private Integer jobId;
	
	public JobHistory() {
		super();
	}
	
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public Date getEndDate() {
		return endDate;
	}
	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}
	public Integer getDeptId() {
		return deptId;
	}
	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}
	public Integer getJobId() {
		return jobId;
	}
	public void setJobId(Integer jobId) {
		this.jobId = jobId;
	}
	public Integer getPkid() {
		return pkid;
	}
	
}
